#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxdecimal(decimal value)
{
	System_Decimal *box = new(,System_Decimal);
	box->m_value = value;
	return (System_Object *)box;
}

internal decimal ___unboxdecimal(System_Object *value)
{
	return ((System_Decimal *)value)->m_value;
}

//+ type
Implement_Type(System_Decimal,System_Object,)
Implement_DefaultCtor(System_Decimal,System_Object)
System_Type _decimalType = { (__typeCtor)null, L"decimal", (__typeBoxer)&___boxdecimal, (__typeUnboxer)&___unboxdecimal, (char*)null, _TypeFlags_Value };
Declare_System(System_Decimal, decimal)
//Implement_System(System_Decimal, decimal)
